#!/bin/zsh
# -*-coding: latin-1;-*-

##########################################################
#
# title:     zsh options config file
#
# filename:  /etc/zsh/options
#
# author(s): Alessandro Molari (mola89.molarulez.com),
#            Luca Molari
#
# license:   This file is licensed under the GPLv2
#            For more informations read:
#            http://www.gnu.org/licenses/gpl-2.0.txt
#
# thanks to: zsh team (www.zsh.org)
#            grml team (grml.org)
#            Michael Prokop (mika@grml.org)
#
##########################################################



# append history list to the history file
setopt append_history

# import new commands from the history file also in other zsh-sessions
setopt SHARE_HISTORY

# save each command's beginning timestamp and the duration to the history file
setopt extended_history

# remove command lines from the history list when the first character is a space
setopt histignorespace

# if a new command line being added to the history list duplicates an older one,

#     the older command is removed from the history list
setopt histignorealldups

# if a command can't be executed and it's a valid path, perform the cd command

#     to the path
setopt auto_cd

# load extended globbing wildcard characters
setopt extended_glob

# display PID when suspending processes as well
setopt longlistjobs

# report the status of background jobs immediately
setopt notify

# whenever a command completion is attempted, make sure the entire command path
#     is hashed first
setopt hash_list_all

# completion is also enabled in the word, not just at the end
setopt completeinword

# try to avoid the 'zsh: no matches found...'
setopt nonomatch

# avoid the beep sound
setopt nobeep

# ignore the HUP (hangup) signal, enabling the command to keep running after
#     the user who issues the command has logged out
setopt nohup

# make cd push the old directory onto the directory stack
setopt auto_pushd

# don't push the same dir twice
setopt pushd_ignore_dups

# dotfiles are matched without explicitly specifying the dot
setopt globdots

# use zsh style word splitting
setopt noshwordsplit

# try to avoid the 'zsh: no matches found...'
setopt nonomatch

# avoid the beep
setopt nobeep

# turn on interactive comments
setopt interactivecomments

setopt prompt_subst

# make sure to use right prompt only when not running a command
setopt transient_rprompt
